package com.rent.reserve.service;

import java.util.List;
import com.rent.reserve.domain.Reserve;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 租房订单Service接口
 *
 * @author cooper
 * @date 2024-10-15
 */
public interface IReserveService extends IService<Reserve> {
    /**
     * 查询租房订单
     *
     * @param reserveId 租房订单主键
     * @return 租房订单
     */
    public Reserve selectReserveByReserveId(Long reserveId);

    /**
     * 查询租房订单列表
     *
     * @param reserve 租房订单
     * @return 租房订单集合
     */
    public List<Reserve> selectReserveList(Reserve reserve);

    /**
     * 新增租房订单
     *
     * @param reserve 租房订单
     * @return 结果
     */
    public int insertReserve(Reserve reserve);

    /**
     * 修改租房订单
     *
     * @param reserve 租房订单
     * @return 结果
     */
    public int updateReserve(Reserve reserve);

    /**
     * 批量删除租房订单
     *
     * @param reserveIds 需要删除的租房订单主键集合
     * @return 结果
     */
    public int deleteReserveByReserveIds(Long[] reserveIds);

    /**
     * 删除租房订单信息
     *
     * @param reserveId 租房订单主键
     * @return 结果
     */
    public int deleteReserveByReserveId(Long reserveId);
}